package com.hawthorn.admin.service.sysuser;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

/**
 * <p>todo 系统用户interface</p>
 * @author: andyten@tom.com | xukaixing@hotmail.com
 * @created: 2021/11/10 9:06 PM
 * @version v1.0.1
 * @copyright: Copyright (c)  andyten
 */
public interface SysUserService
{

  // IPage<Map<String, Object>> findUsers(Page<Map<String, Object>> page, Map<String, QcBean> qc);

  IPage<Map<String, Object>> findUsers(Page<Map<String, Object>> page, String qc);

  IPage<Map<String, Object>> findUsersList(Page<Map<String, Object>> page, String qc);

  IPage<Map<String, Object>> findDealerUsers(Page<Map<String, Object>> page, String qc);

  IPage<Map<String, Object>> findImportUsers(Page<Map<String, Object>> page, String qc);

  IPage<Map<String, Object>> findUserLoginInfo(Page<Map<String, Object>> page, String qc);

  Map<String, Object> saveUser(Map<String, Object> param);

  Map<String, Object> updateUser(Long id, Map<String, Object> param);

  void exportUserData(HttpServletResponse response, String fileName, Map<String, Object> params) throws IOException;

  Map<String, Object> getUserInfoById(String userId);

  Map<String, Object> updateUserStatus(Long id, Integer status, String rid, Long deptId);

  Map<String, Object> selectUserInfoById(Map<String, Object> params);
}
